package com.bhdx.blog.service.impl;

/**
 * @author bhdx
 * @date 2020/6/16-15:18
 */


import javax.annotation.Resource;

import com.bhdx.blog.dao.BloggerDao;
import com.bhdx.blog.entity.Blogger;
import com.bhdx.blog.service.BloggerService;
import org.springframework.stereotype.Service;

/**
 * 博主service实现类
 */

@Service("bloggerService")
public class BloggerServiceImpl implements BloggerService {

    @Resource
    private BloggerDao bloggerDao;

    //根据用户名查询博主信息，用于登陆
    public Blogger getByUsername(String username) {
        return bloggerDao.getByUsername(username);
    }

    //获取博主信息
    public Blogger getBloggerData() {
        return bloggerDao.getBloggerData();
    }

    public Integer updateBlogger(Blogger blogger) {
        return bloggerDao.updateBlogger(blogger);
    }

}


